import type { IList, IResponse } from ".."

// 开发后台管理系统时，会用到权限
export enum UserRole {
    Admin = 'admin', // 管理员
    User = 'user', // 普通用户
    Moderator = 'moderator' // 群主
}

export interface IUser {
    id: number,
    username: string,
    password: string,
    email: string,
    role: UserRole,
    avatar?: string,
    signature?: string,
}

export interface UserResponse extends IResponse {
    data: Partial<IUser>
}

// User List Response
export interface UserListResponse extends IResponse {
    data: IList<IUser>
}